<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .container {
      width: 600px;
      margin: 20px auto;
    }

    .uls {
      width: 100%;
      list-style: none;
      display: flex;
      box-sizing: border-box;
    }

    .uls li {
      flex: 1;
      height: 20px;
      border-right: 1px solid #ccc;

    }

    .current {
      background-color: cornflowerblue;
    }

    .item_content {
      width: 100%;
    }

    .item_content .item {
      width: 100%;
      height: 100px;
      background-color: blueviolet;
      margin: 10px 0;
    }
  </style>
</head>

<body>
  <div class="container">
    <ul class="uls">
      <li class="current">1</li>
      <li>2</li>
      <li>3</li>
    </ul>
    <div class="item_content">
      <div class="item">
        1
      </div>
      <div class="item">
        2
      </div>
      <div class="item">
        3
      </div>
    </div>
  </div>

  <script>
    class Tabs {
      constructor() {
        this.init()
      }
      //初始化
      init() {
        console.log('初始化完成！')
      }
      //切换
      toggle() {

      }
      //添加
      addTab() {

      }
      //删除
      deleteTab() {

      }
      //编辑
      editTab() {

      }

    }
    var tab = new Tabs()

  </script>
</body>

</html>